//
//  MaterialCollectionViewCell.m
//  ProjectA
//
//  Created by dlios on 15/3/6.
//  Copyright (c) 2015年 dlios. All rights reserved.
//

#import "MaterialCollectionViewCell.h"

@implementation MaterialCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self) {
        [self creatCollectionCell];
    }
    
    return self;
}

-(void)creatCollectionCell
{
    self.collectionLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.width * 1.08, self.contentView.frame.size.width, 13)];
    self.collectionLabel.textColor = [UIColor blackColor];
    self.collectionLabel.font = [UIFont systemFontOfSize:13];
    self.collectionLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.collectionLabel];
    
    self.collectionView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.width)];
    self.collectionView.layer.masksToBounds = YES;
    self.collectionView.layer.cornerRadius = self.contentView.frame.size.width / 2;
    self.collectionView.layer.borderWidth = 2;
    self.collectionView.layer.borderColor = [UIColor lightGrayColor].CGColor;
    self.collectionView.alpha = 1.0;
    [self.contentView addSubview:self.collectionView];
    
    
    
    
    
    
    
}




@end
